home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / asmutil / chasm4.zip / EXAMPLE.ASM < prev    next >
Assembly Source File  |  1984-09-05  |  640b  |  16 lines

  1. ;=====================================;
  2. ;HELLO     Version 1.00               ;
  3. ;          1984 by David Whitman      ;
  4. ;                                     ;
  5. ; Sample source file for CHASM.       ;
  6. ; Prints a greeting on the console.   ;
  7. ;=====================================;
  8.  
  9.         MOV AH, 9                 ;specify DOS function 9
  10.         MOV DX, OFFSET(MESSAGE)   ;get address of string
  11.         INT 21H                   ;call DOS
  12.  
  13.         INT 20H                   ;return to DOS
  14.  
  15. MESSAGE DB  'Hello, World!$'      ;message to be printed
  16.